package com.goldgov.materials.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.goldgov.materials.dao.MaterialsDao;
import com.goldgov.materials.service.Materials;
import com.goldgov.materials.service.MaterialsQuery;
import com.goldgov.materials.service.MaterialsService;

@Service
public class MaterialsServiceImpl implements MaterialsService {
	
	@Autowired
	private MaterialsDao dao;
	
	@Override
	public Materials getMaterialsID(){
		return dao.getMaterialsID();
	}
	
	@Override
	public String addMaterials(Materials obj){
		dao.addMaterials(obj);
		return null;
	}
	
	@Override
	public void deleteMaterials(String[] ids){
		dao.deleteMaterials(ids);
	}
	
	@Override
	public void updateMaterials(Materials obj){
		dao.updateMaterials(obj);
	}
	
	@Override
	public Materials getMaterials(String id){
		return dao.getMaterials(id);
	}
	
	@Override
	public List<Materials> listMaterials(MaterialsQuery query){
		return dao.listMaterials(query);
	}
	
}